import request from '@/utils/request'

// 查询课程学生关联列表
export function listCourse(query) {
  return request({
    url: '/learnmanagement/join/list',
    method: 'get',
    params: query
  })
}

// 查询课程学生关联详细
export function getCourse(id) {
  return request({
    url: '/learnmanagement/join/' + id,
    method: 'get'
  })
}

// 新增课程学生关联
export function addCourse(data) {
  return request({
    url: '/learnmanagement/join',
    method: 'post',
    data: data
  })
}

// 修改课程学生关联
export function updateCourse(data) {
  return request({
    url: '/learnmanagement/join',
    method: 'put',
    data: data
  })
}

// 删除课程学生关联
export function delCourse(id) {
  return request({
    url: '/learnmanagement/join/' + id,
    method: 'delete'
  })
}
